#if !defined(AFX_DIALOGREPORT_H__30C169CE_55A3_4CC4_92F9_9FC03329D268__INCLUDED_)
#define AFX_DIALOGREPORT_H__30C169CE_55A3_4CC4_92F9_9FC03329D268__INCLUDED_
#include "MySuperGrid.h"
#include "..\public\pubfun\btnst\BtnST.h"

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DialogReport.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDialogReport dialog
class CDialogReport : public CDialog
{
// Construction
public:
	CDialogReport(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDialogReport)
	enum { IDD = IDD_DIALOG_REPORT };
	CStatic	m_stcT;
	CStatic	m_stcSV1;
	CStatic	m_stcRV5;
	CStatic	m_stcQTC;
	CStatic	m_stcQT;
	CStatic	m_stcQRSTM;
	CStatic	m_stcQRS;
	CStatic	m_stcPR;
	CStatic	m_stcP;
	CStatic	m_stcBPM;
	CEdit	m_edT;
	CEdit	m_edSV1;
	CEdit	m_edRV5;
	CEdit	m_edQTC;
	CEdit	m_edQT;
	CEdit	m_edQRSTM;
	CEdit	m_edQRS;
	CEdit	m_edPR;
	CEdit	m_edP;
	CEdit	m_edBPM;
	CButtonST	m_btnAddModel;
	CButtonST	m_btnSave;
	CButtonST	m_btnWaveForm31;
	CButtonST	m_btnWaveForm;
	CStatic	m_stcResult;
	CStatic	m_stcECGSpec;
	CButtonST	m_btnCancel;
	CButton	m_stc3;
	CButton	m_stc2;
	CButton	m_stc1;
	CEdit	m_ed3;
	CEdit	m_ed1;
	CEdit	m_ed2;
	CButtonST	m_btnUpdate;
	CButtonST	m_btnPrint;
	CButtonST	m_btnDelete;
	CButtonST	m_btnAdd;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDialogReport)
	public:
	virtual BOOL PreTranslateMessage(MSG* pMsg);
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDialogReport)
	virtual BOOL OnInitDialog();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnButtonAdd();
	afx_msg void OnButtonDelete();
	afx_msg void OnButtonUpdate();
	afx_msg void OnSetfocusEdit1();
	afx_msg void OnSetfocusEdit2();
	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);
	afx_msg void OnButtonPrint();
	virtual void OnCancel();
	afx_msg void OnPaint();
	afx_msg void OnButtonWaveform();
	afx_msg void OnButtonWaveform31();
	afx_msg void OnButtonSave();
	afx_msg void OnButtonAddmodel();
	//}}AFX_MSG
	afx_msg void OnMyLButtonDblClk(WPARAM wParam, LPARAM lparam);
	DECLARE_MESSAGE_MAP()

public:
	CMySuperGrid m_listModel;
	CString GetLevel1();
	CString GetLevel2();
	CString m_strAutoAnalLevel2;
	CString m_strAutoAnalLevel1;
	CString m_strAnn;

	void PatientChanged();
	void SaveChanged();

private:
	void InitCtrls();
	void DockCtrls();

//	CEdit* _pFocusEdit;
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DIALOGREPORT_H__30C169CE_55A3_4CC4_92F9_9FC03329D268__INCLUDED_)
